package com.jinzhi.jinzhidata.dataobject;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Lob;
import java.util.Date;

/**
 * @description
 * @date 2019-12-28 23:10
 **/
@Data
@EntityListeners(AuditingEntityListener.class)
@Entity
public class ArticleContent {

    @Id
    private String articleContentId;

    @Lob
    private String articleContentText;

    @CreatedDate
    private Date createTime;

    @LastModifiedDate
    private Date updateTime;

}
